package com.liugan.magic.actor;


import com.liugan.magic.actor.base.BaseActor;
import com.liugan.magic.screen.PointXY;
import com.liugan.magic.screen.layer.GameLayer;
import com.liugan.magic.utils.AnimationUtils;

public class Fox extends BaseActor{
	
	public Fox(PointXY totalXY,PointXY offsetXY){
		this.totalXY.setxy(totalXY);
		this.offsetXY.setxy(offsetXY);
		this.setAnimation(true);
		this.setAnimation(AnimationUtils.getinstance().ffls);
		ct.setCT("fox", 0, 0, 1, 4, -15,0,0);//设定属性
	}

	@Override
	public void action(long elapsedTime) {
		if (layer==null){
			layer =(GameLayer)this.getLayer();
		}
		this.setLocation(this.totalXY.x-layer.layerbeginXY.x, this.totalXY.y-layer.layerbeginXY.y);
	}
}
